<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jspf/taglibs.jspf"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
    <script type="text/javascript">
        localPath="report"
    </script>
</head>
<body>
<div class="p-h-md p-v bg-white box-shadow pos-rlt ng-scope">
  <h3 class="no-margin">计划统计</h3>
</div>
<div class="p-md ng-scope">
<ul class="nav nav-tabs" >
        <li >
          <a href="/reports">整体统计</a>
        </li>
        <li class="active">
          <a href="javascript:void(0)" >计划统计</a>
        </li>
        <!-- <li>
          <a href="/reports/ads" >广告统计</a>
        </li> -->
      </ul>
      <div class="p b-a no-b-t bg-white m-b ng-scope"  >
      <table id="rptCampTable"  class="table table-bordered table-hover bg-white">
      <thead>
        <tr>
          <th>时间</th>
          <th>计划名</th>
          <th>曝光量</th>
          <th>点击量</th>
          <th>点击率</th>
          <th>平均点击费用</th>
          <th>千次展示费用</th>
          <th>花费</th>
        </tr>
      </thead>
      <tbody>
        <colgroup>
        <col>
        <col>
        <col width="12%">
        <col width="12%">
        <col width="12%">
        <col width="16%">
        <col width="16%">
        <col >
        </colgroup>
      </tbody>
      <c:if test="${!empty form.campaignRpts}">
	        <c:forEach items="${form.campaignRpts }" varStatus="i" var="rpt">
	        <tr>
	          <td>
	             ${rpt["rpt_date"] } 
	          </td>
	          <td>
	          	${rpt["cname"] }
	          </td>
	          <td>
	            ${rpt["pv"] }
	          </td>
	          <td>
	             ${rpt["pc"] }
	          </td>
	          <td><fmt:formatNumber value="${rpt['ctr'] }" maxFractionDigits="2" />%</td>
	          <td>￥<fmt:formatNumber value="${rpt['avgClickCost'] }" maxFractionDigits="2" /></td>
	          <td>￥<fmt:formatNumber value="${rpt['viewCost'] }" maxFractionDigits="2" /></td>
	          <td>￥<fmt:formatNumber value="${rpt['total_cost'] }" maxFractionDigits="2" /></td>
	        </tr>
	        </c:forEach>
        </c:if>
    </table>
      </div>
</div>

</body>
</html>